// ************** DEBUG *************************

#if DEBUG
  #ifndef __OSDEBUG_H
  #define __ODDEBUG_H
  // *********** DEBUG_GLOBALS ******************
  Sema4Type Sema4Test;
  unsigned long counterArray[10]={0}; // For testing 
  int debugBuffer[100];
  int bufferIndex  = 0;
  // *********** OS_TestThread ******************

  void TestThread(void){
    while(1){
          // Test OS_Wait
	  if(CurrentThreadPt->TaskPriority == 1){
	    OS_Wait(&Sema4Test);
	  }
	      // Increment a counter based on the priortiy of the thread
      counterArray[CurrentThreadPt->TaskPriority]++; 
    }
  }
  
void OS_DebugInit(void){
    Sema4Test.Value = 0;
//	Sema4Test.BlockListPt = 0;
  }
  #endif
#endif
